﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace EvertonApp.Transporte
{
    [DataContract]
    public class Oferta
    {
        [DataMember]
        public Guid IdOferta { get; set; }
        [DataMember]
        public Comercio Comercio { get; set; }
        [DataMember]
        public String Titulo { get; set; }
        [DataMember]
        public String Descripcion { get; set; }
        [DataMember]
        public DateTime FechaInicio { get; set; }
        [DataMember]
        public DateTime FechaFin { get; set; }


        public Oferta()
        {
        }

        public Oferta(Guid IdOferta, Comercio Comercio, String tit, String des, DateTime fInicio, DateTime fFin)
        {
            this.IdOferta = IdOferta;
            this.Comercio = Comercio;
            this.Titulo = tit;
            this.Descripcion = des;
            this.FechaInicio = fInicio;
            this.FechaFin = fFin;
        }

    }
}
